package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.DamageListGoods;
import com.atguigu.jxc.entity.OverflowList;
import com.atguigu.jxc.entity.OverflowListGoods;

import java.util.List;

/**
 * @Author: zhao
 * @Date: 2020/12/4 20:33
 */
public interface RepertoryDao {
    /**
     * 添加库损商品
     * @param damageListGoods
     */
    void addDamageListGoods(DamageListGoods damageListGoods);

    /**
     * 添加库损单
     * @param damageList
     */
    void addDamageList(DamageList damageList);

    /**
     * 新增报溢单
     * @param overflowList
     */
    void addOverflowList(OverflowList overflowList);

    /**
     * 添加报溢商品
     * @param overflowListGoods
     */
    void addOverflowListGoods(OverflowListGoods overflowListGoods);

    /**
     * 查询报损单所有数据
     * @return
     */
    List<DamageList> getAllDamageList();

    /**
     *
     * @param damageListId
     * @return
     */
    List<DamageListGoods> damageListGoodsGoodsList(Integer damageListId);

    /**
     *
     * @return
     */
    List<OverflowList> getAllOverflowList();

    /**
     *
     * @param damageListId
     * @return
     */
    List<OverflowListGoods> overflowListGoodsgoodsList(Integer damageListId);
}
